projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c6f788
)
serach.c (simple_search): Remove warning by making *p const.
author
Jan Djärv
<jan.h.d@swipnet.se>
Fri, 27 Nov 2009 15:44:30 +0000
(15:44 +0000)
committer
Jan Djärv
<jan.h.d@swipnet.se>
Fri, 27 Nov 2009 15:44:30 +0000
(15:44 +0000)
src/ChangeLog
patch
|
blob
|
history
src/search.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 574dfae329ad3d105a134f634a2d8cecd0d72823..495e712c6460b4b1dd6a4334b14f83a7c7aff146 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,7
@@
+2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
+
+ * search.c (simple_search): Remove warning by making *p const.
+
2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
* xdisp.c (power_letter): Remove duplicate const.
diff --git
a/src/search.c
b/src/search.c
index abbad764c3c41a9ad7b2b62d66e78c701f6a22dc..05db2bef98b73b0e74cccdf801724d79d9834313 100644
(file)
--- a/
src/search.c
+++ b/
src/search.c
@@
-1612,7
+1612,7
@@
simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
EMACS_INT this_pos = pos;
EMACS_INT this_pos_byte = pos_byte;
int this_len = len;
- unsigned char *p = pat + len_byte;
+
const
unsigned char *p = pat + len_byte;
if (this_pos - len < lim || (pos_byte - len_byte) < lim_byte)
goto stop;